package ui.asistent;

import java.awt.EventQueue;

import javax.swing.JInternalFrame;
import java.awt.Color;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.border.TitledBorder;
import javax.swing.JTable;
import javax.swing.JButton;
import javax.swing.table.DefaultTableModel;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JSeparator;

public class VizualizareActivitatiVoluntar extends JFrame {
	private JTable table;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;

	
	public VizualizareActivitatiVoluntar() {
		getContentPane().setBackground(new Color(240, 255, 255));
		setForeground(new Color(224, 255, 255));
		setTitle("Vizualizare Activitati Voluntar");
		
		setBackground(new Color(224, 255, 255));
		setBounds(100, 100, 923, 546);
		getContentPane().setLayout(null);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(57, 34, 716, 200);
		getContentPane().add(scrollPane);
		
		table = new JTable();
		table.setFont(new Font("Arial", Font.PLAIN, 14));
		table.setModel(new DefaultTableModel(
			new Object[][] {
			},
			new String[] {
				"Asistat", "Activitate", "Data", "Interval de timp"
			}
		) {
			Class[] columnTypes = new Class[] {
				String.class, String.class, String.class, String.class, String.class
			};
			public Class getColumnClass(int columnIndex) {
				return columnTypes[columnIndex];
			}
		});
		scrollPane.setViewportView(table);
		
		JButton btnCautaAsistent = new JButton("Adauga Activitate");
		btnCautaAsistent.setFont(new Font("Arial", Font.PLAIN, 14));
		btnCautaAsistent.setBounds(630, 388, 155, 34);
		getContentPane().add(btnCautaAsistent);
		
		textField = new JTextField();
		textField.setBounds(216, 325, 322, 20);
		getContentPane().add(textField);
		textField.setColumns(10);
		
		JLabel lblCnp = new JLabel("CNP Asistat:");
		lblCnp.setForeground(new Color(47, 79, 79));
		lblCnp.setFont(new Font("Arial", Font.BOLD, 14));
		lblCnp.setBounds(57, 327, 105, 14);
		getContentPane().add(lblCnp);
		
		JSeparator separator = new JSeparator();
		separator.setToolTipText("");
		separator.setForeground(new Color(233, 150, 122));
		separator.setBackground(new Color(112, 128, 144));
		separator.setBounds(57, 302, 716, 14);
		getContentPane().add(separator);
		
		JLabel lblAdaugareaUneiNoi = new JLabel("Adaugarea unei noi activitati ");
		lblAdaugareaUneiNoi.setForeground(new Color(0, 0, 0));
		lblAdaugareaUneiNoi.setBackground(new Color(0, 139, 139));
		lblAdaugareaUneiNoi.setFont(new Font("Arial", Font.BOLD, 14));
		lblAdaugareaUneiNoi.setBounds(57, 285, 226, 14);
		getContentPane().add(lblAdaugareaUneiNoi);
		
		textField_1 = new JTextField();
		textField_1.setBounds(216, 368, 322, 20);
		getContentPane().add(textField_1);
		textField_1.setColumns(10);
		
		textField_2 = new JTextField();
		textField_2.setBounds(216, 412, 322, 20);
		getContentPane().add(textField_2);
		textField_2.setColumns(10);
		
		textField_3 = new JTextField();
		textField_3.setBounds(216, 454, 322, 20);
		getContentPane().add(textField_3);
		textField_3.setColumns(10);
		
		JLabel lblActivitate = new JLabel("Activitate:");
		lblActivitate.setForeground(new Color(47, 79, 79));
		lblActivitate.setFont(new Font("Arial", Font.BOLD, 14));
		lblActivitate.setBounds(57, 370, 78, 14);
		getContentPane().add(lblActivitate);
		
		JLabel lblData = new JLabel("Data:");
		lblData.setForeground(new Color(47, 79, 79));
		lblData.setFont(new Font("Arial", Font.BOLD, 14));
		lblData.setBounds(57, 414, 46, 14);
		getContentPane().add(lblData);
		
		JLabel lblIntervalDeTimp = new JLabel("Interval de timp:");
		lblIntervalDeTimp.setForeground(new Color(47, 79, 79));
		lblIntervalDeTimp.setFont(new Font("Arial", Font.BOLD, 14));
		lblIntervalDeTimp.setBounds(57, 456, 137, 14);
		getContentPane().add(lblIntervalDeTimp);

	}
}
